package cn.hackcloud.demo.dubbo.rpc;

import java.util.List;
import java.util.concurrent.CompletableFuture;

import cn.hackcloud.demo.dubbo.bean.UserAddress;

public interface IUserService {
    String sentinel(String json) throws InterruptedException;

    List<UserAddress> sync(String userId);

    List<UserAddress> async(String userId);

    CompletableFuture<List<UserAddress>> async2(String userId);
}
